<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<title>服务号配置</title>
		<link rel="stylesheet" href="css/reset.css" />
		<link rel="stylesheet" href="css/platform.css" />
		<link rel="stylesheet" href="css/table.css" />
		<link rel="stylesheet" href="css/config.css" />
	</head>
	<body>
	    <div class="header">
            <div class="u-title">服务号配置</div>
        </div>
	    <div class="container" ms-controller="mainController">
	        
	        <div class="cnt-box">
                <button class="u-btn small" ms-click="addConfig">新增</button>
            </div>
	        <div id="configTable" ms-controller="configTable"></div>
            <script type="avalon" id="tableconfig">                         
                <div class="tableWrapper">
                    <table class="table">
                        <thead>
                            <tr>
                                <th>服务号ID</th>
                                <th>服务号名称</th>
                                <th>服务系统</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr ms-repeat-row="sources">
                                <td>{{row.serviceNumId}}</td>
                                <td>{{row.serviceNumName}}</td>
                                <td>{{row.systemIds}}</td>
                                <td class="operate">                                            
                                    <a href="javascript:;" ms-click="customFuncs.editConfig(row)">编辑</a>
                                    <!--<a href="javascript:;" ms-click="customFuncs.delConfig(row)">删除</a>-->
                                </td>
                            </tr>
                        </tbody>
                        <!--<tfoot>
                            <tr>
                                <td colspan="6">
                                    <div class="pager">
                                        <div class="first-page" ms-click="firstpage" ms-class={{firstpagestyle}}>首页</div>
                                        <div class="pre-page" ms-click="prepage" ms-class={{prepagestyle}}>上一页</div>
                                        <div class="current-page">第<input class="current-page-num" type="text" ms-duplex="currentpage" ms-input="jumppage"/>页
                                            <span class="totalpage">共 {{totalpage}} 页</span>
                                        </div>
                                        <div class="next-page" ms-click="nextpage" ms-class={{nextpagestyle}}>下一页</div>
                                        <div class="last-page" ms-click="lastpage" ms-class={{lastpagestyle}}>尾页</div>
                                        <div class="messageinfo">{{startrow}}-{{endrow}} 共{{total}}条</div>
                                    </div>
                                </td>
                            </tr>
                        </tfoot>-->
                    </table>
                </div>
            </script>
	    </div>
	    <div class="u-popup" id="popup_edit" ms-controller="editController">
            <div class="bg"></div>
            <div class="asTable">
                <div class="asTableCell">
                    <div class="asCell dialog">
                        <a href="javascript:;" class="close btn-close">×</a>
                        <p class="title">新增/编辑服务号</p>
                        <div class="container">
                            <div class="u-form">
                                <div class="column">
                                    <label><span>*</span>服务号名称：</label>
                                    <input type="hidden" name="id" ms-duplex="serviceId" />
                                    <input name="name" class="u-ipt" type="text" placeholder="服务号名称" ms-duplex="servicename" maxlength="12" />
                                    <p class="u-error">服务号不能为空</p>
                                </div>
                                <div class="column" ms-repeat-system="systemList">
                                    <label><span>*</span>服务号系统：</label>
                                    <input name="system" class="u-ipt" type="text" placeholder="服务号系统" ms-duplex="system.servicesystem" maxlength="30"  />
                                    <div class="operate">
                                        <div class="minus" ms-class="dis:systemList.length==1" ms-click="removeDom($index)"></div>
                                        <div class="add" ms-click="addSystem"></div>                                                    
                                    </div>
                                    <p class="u-error" ms-if="$last">服务号系统最少输入一个</p>
                                </div>
                                
                            </div>
                        </div>
                        <div class="line"></div>
                        <div class="btn-box">
                            <button class="u-btn" ms-click="saveConfig()">保存</button>
                            <button class="u-btn gray btn-close">取消</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
	    <!--<div class="u-popup" id="popup_del">
            <div class="bg"></div>
            <div class="asTable">
                <div class="asTableCell">
                    <div class="asCell alert">
                        <a href="javascript:;" class="close btn-close">×</a>
                        <p class="title">提示</p>
                        <div class="container">
                            <div class="warning"></div>
                            <p>确定要删除该数据吗？</p>
                        </div>
                        <div class="btn-box">
                            <button class="u-btn" ms-click="delData()">确定</button>
                            <button class="u-btn gray btn-close">取消</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>-->
        <div class="u-popup" id="popup_tips">
            <div class="bg"></div>
            <div class="asTable">
                <div class="asTableCell">
                    <div class="asCell alert">
                        <a href="javascript:;" class="close btn-close">×</a>
                        <p class="title">提示</p>
                        <div class="container">
                            <div class="error"></div>
                            <p></p>
                        </div>
                        <div class="btn-box">
                            <button class="u-btn btn-close">确定</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
	    <script src="js/jquery.min.js"></script>
        <script src="js/avalon.shim.sn.js"></script>
        <script src="js/swift-ui-table-1.1.js"></script>
        <script src="js/platform.js"></script>
        <script src="js/DataInterface/DataInterface.js"></script>
        <script src="js/page/config.js"></script>
	</body>
</html>
